package com.wnxy.pms.product.core.service;

import com.wnxy.pms.product.core.dto.OrderPayDto;
import com.wnxy.pms.product.core.entity.PromotionSeckill;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wnxy.pms.product.core.vo.OrderVo;
import com.wnxy.pms.product.core.vo.PaymentVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 秒杀活动表 服务类
 * </p>
 *
 * @author Jet
 * @since 2022-06-06
 */
public interface IPromotionSeckillService extends IService<PromotionSeckill> {

    List<Map<String, Object>> selectStoreByStatus(Integer waitStatus);

    OrderVo submitOrder(String userId, Integer promotionId);

    Integer payOrder(OrderPayDto orderDto);

    PaymentVo confirmOrder(OrderPayDto orderPayDto);
}
